home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Science / RasMol2 / pixutils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-28  |  1.7 KB  |  71 lines  |  [TEXT/KAHL]

  1. /* pixutils.h
  2.  * RasMol2 Molecular Graphics
  3.  * Roger Sayle, October 1994
  4.  * Version 2.5
  5.  */
  6.  
  7. typedef struct {
  8.         int px, py, pz;
  9.         int wx, wy, wz;
  10.         int tx, ty, tz;
  11.         int cx, cy, cz;
  12.         int inten;
  13.     } Knot;
  14.  
  15. #define ZValid(z)     ((!UseSlabPlane) || ((z)<SlabValue))
  16. #define XValid(x)     (((x)>=0)&&((x)<XRange))
  17. #define YValid(y)     (((y)>=0)&&((y)<YRange))
  18.  
  19.  
  20. #ifdef PIXUTILS
  21. int SplineCount;
  22. int FontSize;
  23.  
  24. #else
  25. extern int SplineCount;
  26. extern int FontSize;
  27.  
  28. #ifdef FUNCPROTO
  29. void PlotDeepPoint( int, int, int, int );
  30. void ClipDeepPoint( int, int, int, int );
  31. void DrawTwinLine( int, int, int, int, int, int, int, int );
  32. void ClipTwinLine( int, int, int, int, int, int, int, int );
  33. void DrawTwinVector( int, int, int, int, int, int, int, int );
  34. void ClipTwinVector( int, int, int, int, int, int, int, int );
  35. void ClipDashVector( int, int, int, int, int, int, int, int );
  36.  
  37. void DrawCylinder( int, int, int, int, int, int, int, int, int );
  38. void ClipCylinder( int, int, int, int, int, int, int, int, int );
  39. void StrandRibbon( Knot __far*, Knot __far*, int, int );
  40. void SolidRibbon( Knot __far*, Knot __far*, int );
  41. void DrawSphere( int, int, int, int, int );
  42. void ClipSphere( int, int, int, int, int );
  43.  
  44. void SetFontSize( int );
  45. void DisplayString( int, int, int, char*, int );
  46. void InitialisePixUtils();
  47.  
  48. #else /* non-ANSI C compiler */
  49. void PlotDeepPoint();
  50. void ClipDeepPoint();
  51. void DrawTwinLine();
  52. void ClipTwinLine();
  53. void DrawTwinVector();
  54. void ClipTwinVector();
  55. void ClipDashVector();
  56.  
  57. void DrawCylinder();
  58. void ClipCylinder();
  59. void StrandRibbon();
  60. void SolidRibbon();
  61. void DrawSphere();
  62. void ClipSphere();
  63.  
  64. void SetFontSize();
  65. void DisplayString();
  66. void InitialisePixUtils();
  67.  
  68. #endif
  69. #endif
  70.  
  71.